﻿/* *****************************************************************************
* Creator: Rastko Šoškić - rssole@hotmail.com
* Date: 07/29/2009
* Description: Structure which contains necessary info about single instance of
*               OrderedImage control which will be serialized to JSON and served
*               to client code
*
* ****************************************************************************** */

using System.Web.UI.WebControls;
using System.Runtime.Serialization;

namespace Rastko.OrderedImageLoading.Controls
{
    /// <summary>
    /// Contains information necessary for ordered loading of images
    /// </summary>
    /// <remarks>This structure is introduced to enable
    /// easier serialization of necessary data to JSON</remarks>
    [DataContract]
    public struct OrderedImageInfo
    {
        [DataMember]
        public int LoadingOrder { get; set; }
        [DataMember]
        public string ClientID { get; set; }
        [DataMember]
        public string ImageUrl { get; set; }
        [DataMember]
        public Unit Width { get; set; }
        [DataMember]
        public Unit Height { get; set; }
    }
}